package com.heima.wemedia.controller;


import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.common.wemedia.dto.WmUserDto;
import com.heima.wemedia.service.WmUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 自媒体用户信息表 前端控制器
 * </p>
 *
 * @author author
 * @since 2023-06-02
 */
@RestController
@RequestMapping("/login")
public class WmUserController {
    @Autowired
    private WmUserService wmUserService;

    /**
     * 登录
     * @param dto
     * @return
     */
    @PostMapping("/in")
    public ResponseResult  login(@RequestBody WmUserDto dto){
        return wmUserService.login(dto);
    }
}
